﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace EC2011_hk2_BT1_1041448.MasterPages
{
    public partial class WebForm3 : System.Web.UI.Page
    {
        private Label _response;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                this.Calendar1.SelectedDate = DateTime.Now;                
            }
        }

        protected void Calendar1OnChanged(object sender, EventArgs e){
            _response = new Label();
            _response.Text = "My activities on day : " + this.Calendar1.SelectedDate.ToLongDateString();
            this.Panel2.Controls.Add(_response);
        }
    }
}
